package com.erp.erp_entitys.InspectCargo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;
import java.util.Objects;

/**
 * 验货商检-附件
 *
 */
@ApiModel(value = "验货商检-附件实体类")
public class InspectCargoFileEntity {
    /**
     * 主键
     */
    @ApiModelProperty(value = "id")
    private Integer id;

    /**
     * 文件名称
     */
    @ApiModelProperty(value = "文件名称")
    private String fileName;

    /**
     * 文件路径
     */
    @ApiModelProperty(value = "文件路径")
    private String fileUrl;

    /**
     * 文件类型
     */
    @ApiModelProperty(value = "文件类型")
    private String fileType;

    /**
     * 文件大小（KB）
     */
    @ApiModelProperty(value = "文件大小（KB）")
    private String fileSize;

    /**
     * 操作员
     */
    @ApiModelProperty(value = "操作员")
    private String fileExecutor;

    /**
     * 上传时间
     */
    @ApiModelProperty(value = "上传时间")
    private Date fileUploadTime;
    /**
     * 验货商检外键
     */
    @ApiModelProperty(value = "验货商检外键")
    private Integer inspectCargoId;
    /**
     * 上传文件原名称
     */
    private String wjName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName == null ? null : fileName.trim();
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl == null ? null : fileUrl.trim();
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType == null ? null : fileType.trim();
    }

    public String getFileSize() {
        return fileSize;
    }

    public void setFileSize(String fileSize) {
        this.fileSize = fileSize == null ? null : fileSize.trim();
    }

    public String getFileExecutor() {
        return fileExecutor;
    }

    public void setFileExecutor(String fileExecutor) {
        this.fileExecutor = fileExecutor;
    }

    public Date getFileUploadTime() {
        return fileUploadTime;
    }

    public void setFileUploadTime(Date fileUploadTime) {
        this.fileUploadTime = fileUploadTime;
    }

    public Integer getInspectCargoId() {
        return inspectCargoId;
    }

    public void setInspectCargoId(Integer inspectCargoId) {
        this.inspectCargoId = inspectCargoId;
    }

    public String getWjName() {
        return wjName;
    }

    public void setWjName(String wjName) {
        this.wjName = wjName;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append(" \"id\":").append(id);
        sb.append(", \"fileName\":\"").append(fileName).append('\"');
        sb.append(", \"fileUrl\":\"").append(fileUrl).append('\"');
        sb.append(", \"fileType\":\"").append(fileType).append('\"');
        sb.append(", \"fileSize\":\"").append(fileSize).append('\"');
        sb.append(", \"fileExecutor\":\"").append(fileExecutor).append('\"');
        sb.append(", \"fileUploadTime\":\"").append(fileUploadTime).append('\"');
        sb.append(", \"inspectCargoId\":").append(inspectCargoId);
        sb.append('}');
        return sb.toString();
    }
}